home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / TravelingSalesman / Source_code / PlotView.h < prev    next >
Encoding:
Text File  |  1991-09-18  |  1.4 KB  |  64 lines

  1. /* 
  2.  * PlotView.h -- Interface file for the PlotView class 
  3.  *
  4.  * You may freely copy, distribute, and reuse the code in this example.
  5.  * NeXT disclaims any warranty of any kind, expressed or implied, as to its
  6.  * fitness for any particular use.
  7.  *
  8.  */
  9.  
  10. #import <appkit/View.h>
  11.  
  12. @interface PlotView:View
  13. {
  14.     id        delegate;
  15.     id        points;
  16.     id              xmax;
  17.     id              ymax;
  18.     id              ymin;
  19.     id              xmin;
  20.     id              freeze;
  21.     id              temp;
  22.     id              pathL;
  23.     id              initTemp;
  24.     id        crossCursor;
  25.     id        Iterations;
  26.     id        readOut;
  27.     id        CoolingOff;
  28.     id        NukeCities;
  29.     float        radius;
  30.     BOOL        needsClearing;
  31. }
  32. - initFrame:(const NXRect *)frameRect;
  33. - setDelegate:anObject;
  34. - drawSelf:(const NXRect *)rects :(int)rectCount;
  35. - sizeTo:(NXCoord)width :(NXCoord)height;
  36. - clear:sender;
  37. - DoRoute:sender;
  38. - setTextCell:aTextField;
  39. - Nuke:sender;
  40. - setXmax:anObject;
  41. - setYmax:anObject;
  42. - setXmin:anObject;
  43. - setYmin:anObject;
  44. - setFreeze:anObject;
  45. - setInitTemp:anObject;
  46. - setPathL:anObject;
  47. - setTemp:anObject;
  48. - plot:sender;
  49. - mouseDown:(NXEvent *)theEvent;
  50. - registerPoint:(NXPoint *)aPoint;
  51. - setRadius:(float)aFloat;
  52. - (float)radius;
  53. - read:(NXTypedStream *)stream;
  54. - write:(NXTypedStream *)stream;
  55. - awake;
  56. - (const char *)inspectorName;
  57. @end
  58.  
  59. @interface Object(PlotViewDelegate)
  60. - plotView:sender providePoints:(NXStream **)stream;
  61. - plotView:sender pointDidChange:(NXPoint *)aPoint;
  62. @end
  63.  
  64.